<?php
namespace app\common\model;

use think\Db;

class InfoGenjinModel extends Base
{
    protected $table = 'infos_genjin';
    public function getHistory($info_id){
        $option_value = Db::name('infos_genjin')->alias('t1')->field('t1.*,t2.nickname')
        ->join('platform_accounts t2', 't1.user_id=t2.id', 'left')
        ->where('t1.info_id', $info_id)->order("t1.id desc")->all();
        return $option_value;
    }
}